//
//  MyStockNewsService.h
//  Stock
//
//  Created by blacksun on 11-6-27.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "StockNewsService.h"
#import "MyStockNews.h"

#define kStockNewsIdKey         @"stockIdKey"




@interface MyStockNewsService : StockNewsService {
    
}



-(void)queryStockNewsWithUrl:(NSString *)url ifNotExistInDBWithSectionId:(NSString *)aSectionId stockId:(NSString *)stockId andSectionIndex:(int)aSectionIndex;

-(void)saveMyStockNewses:(NSArray *)myStockNewses;
-(NSInteger)countBySectionId:(NSString *)sectionId stockId:(NSString *)stockId andSectionIndex:(int)sectionIndex;
-(NSArray *)selectStockNewsBySectionId:(NSString *)sectionId stockId:(NSString *)stockId andSectionIndex:(int)sectionIndex;
-(void)deleteStockNewsBySectionId:(NSString *)sectionId stockId:(NSString *)stockId startSectionIndex:(int)start andEndSectionIndex:(int)end;

@end
